package tl_client

import (
	"log"

	"io.plus/test_loss/pkg/tl_model"
)

func SaveJobInfoToDB(jobName string, count int64) error {
	err := (&tl_model.JobInfo{JobName: jobName, JobCount: count}).Save()
	if err != nil {
		log.Printf("save job info err: %v", err)
	}
	return nil
}
